package org.grow.jssp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;

@TableName(value = "downloadlog")
public class Downloadlog {
    @TableId(value = "downloadlLogId", type = IdType.AUTO)
    private Integer downloadlLogId;

    @TableField(value = "downloadTime")
    private LocalDateTime downloadTime;

    @TableField(value = "username")
    private String username;

    @TableField(value = "filename")
    private String filename;

    @TableField(value = "targetFile")
    private String targetFile;

    @TableField(value = "`state`")
    private String state;

    public static final String COL_DOWNLOADLLOGID = "downloadlLogId";

    public static final String COL_DOWNLOADTIME = "downloadTime";

    public static final String COL_USERNAME = "username";

    public static final String COL_FILENAME = "filename";

    public static final String COL_TARGETFILE = "targetFile";

    public static final String COL_STATE = "state";

    /**
     * @return downloadlLogId
     */
    public Integer getDownloadlLogId() {
        return downloadlLogId;
    }

    /**
     * @param downloadlLogId
     */
    public void setDownloadlLogId(Integer downloadlLogId) {
        this.downloadlLogId = downloadlLogId;
    }

    /**
     * @return downloadTime
     */
    public LocalDateTime getDownloadTime() {
        return downloadTime;
    }

    /**
     * @param downloadTime
     */
    public void setDownloadTime(LocalDateTime downloadTime) {
        this.downloadTime = downloadTime;
    }

    /**
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * @return filename
     */
    public String getFilename() {
        return filename;
    }

    /**
     * @param filename
     */
    public void setFilename(String filename) {
        this.filename = filename;
    }

    /**
     * @return targetFile
     */
    public String getTargetFile() {
        return targetFile;
    }

    /**
     * @param targetFile
     */
    public void setTargetFile(String targetFile) {
        this.targetFile = targetFile;
    }

    /**
     * @return state
     */
    public String getState() {
        return state;
    }

    /**
     * @param state
     */
    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", downloadlLogId=").append(downloadlLogId);
        sb.append(", downloadTime=").append(downloadTime);
        sb.append(", username=").append(username);
        sb.append(", filename=").append(filename);
        sb.append(", targetFile=").append(targetFile);
        sb.append(", state=").append(state);
        sb.append("]");
        return sb.toString();
    }
}